package tech.aistar.service;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.security.core.parameters.P;
import org.springframework.test.context.junit4.SpringRunner;
import tech.aistar.entity.dynamic.Picture;
import tech.aistar.mapper.PictureMapper;

import java.util.List;

/**
 * @author Ace
 * @version 1.0
 * @descriiption:本类用来演示:
 * @date 2019/10/11 0011.
 */
@RunWith(SpringRunner.class)
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
public class PictureTest {
    @Autowired
    private PictureMapper pictureMapper;
    @Autowired
    private IPictureVoService pictureVoService;
    @Test
    public void findAll() {
//        List<Picture> list=pictureMapper.findAll();
//        System.out.println(list);
//        pictureMapper.delById(40);
//        pictureMapper.findByUserId(2);
        System.out.println(pictureVoService.findAll(1));
    }
}
